package com.aind.book.service;

import com.aind.book.model.Book;
import com.aind.category.model.Category;

import java.util.List;

/**
 * Created by lpeng on 2017/2/24.
 */
public interface BookService {

    /**
     * 通过CategoryId 查找所有的书
     * @return
     */
    List<Book> getBookListByCategoryId(Long categoryId);

    /**
     * 通过bookId进行查询
     * @param bookId
     * @return
     */
    Book getBookByBookId(Long bookId);
}
